package com.kwin.reqexceltest.controller;

import java.util.List;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.fastjson.JSON;
import com.kwin.reqexcel.annotation.RequestExcel;
import com.kwin.reqexceltest.dto.Test;

import lombok.extern.slf4j.Slf4j;

/**
 * @author : wangkai
 * @version V1.0
 * @Package com.kwin.reqexceltest.controller
 * @Description:
 * @date 2021年10月19日 13:59
 **/
@Slf4j
@RestController
public class TestController {
    
    @PostMapping("test")
    public String test(@RequestExcel(fileName = "file") List<Test> list) {
        return JSON.toJSONString(list);
    }
}
